#!/bin/bash
#update all##
proxy_url=https://git.yylx.win
latest_version=`curl ${proxy_url}/https://github.com/RROrg/rr/releases/|grep 'releases/expanded_assets'|awk -F'expanded_assets/' '{print$2}'|awk '{print$1}'|sed 's/"//g'|head -1`;
cd /tmp;rm -f updateall-${latest_version}.zip;wget ${proxy_url}/https://github.com/RROrg/rr/releases/download/${latest_version}/updateall-${latest_version}.zip;echo "start update by menu.sh....";
menu.sh

#img##
latest_version=`curl ${proxy_url}/https://github.com/RROrg/rr/releases/|grep 'releases/expanded_assets'|awk -F'expanded_assets/' '{print$2}'|awk '{print$1}'|sed 's/"//g'|head -1`;
wget ${proxy_url}/https://github.com/RROrg/rr/releases/download/${latest_version}/rr-${latest_version}.img.zip;